package io.github.junxworks.qt.modules.data.dto;

import java.util.Map;

import com.google.common.collect.Maps;

public class TushareApiRequest {
	private String api_name;

	private String token;

	private Map<String, String> params = Maps.newHashMap();

	private String fields;

	private Integer offset = 0;

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		this.offset = offset;
	}

	public String getApi_name() {
		return api_name;
	}

	public void setApi_name(String api_name) {
		this.api_name = api_name;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public String getFields() {
		return fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public void addParam(String name, String value) {
		params.put(name, value);
	}

}
